<%@ page contentType="text/html" pageEncoding="UTF-8" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="contextPath"
	value="${pageContext.servletContext.contextPath}" />
<!doctype html>
<html lang="en">
<head>
<title>Import trips</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="${contextPath}/styles/default.css" />
</head>
<body>
	<header>
		<c:import url="/WEB-INF/JSP/menu.jsp" />
		<h1>Import trips</h1>
	</header>
	<c:url value="/trips/import" var="importTripsURL" />
	<form action="${importTripsURL}" method="post"
		enctype="multipart/form-data">
		<label for="file">XML File with trips</label> <input type="file"
			name="file" id="file" /> <input type="submit" value="import" />
	</form>
	<c:url var="schemaURL" value="/schemas/trips.xsd" />
	<div>
		<a href="${schemaURL}">The XML schema with which the file should
			match</a>
	</div>
	<c:if test="${not empty errors}">
		<ul>
			<c:forEach var="error" items="${errors}">
				<li class="fout">${error}</li>
			</c:forEach>
		</ul>
	</c:if>
</body>
</html>
